package com.ftg.learn.chapter04;

import org.junit.Assert;
import org.junit.Test;

/**
 * 这是一个测试类，用于测试learnmethodjunit里添加方法
 * @author KangJx
 * @date 2021/7/7
 */
public class LearnMethodJunit {

    @Test
    public void testAdd(){
        int x = 13;
        int y = 14;
        int sum = LeranMethodJunit.add(x,y);
        //断言
        Assert.assertEquals(27,sum);
    }

    @Test
    public void testAdd3(){
        int x = 13;
        int y = 14;
        int z = 15;
        int sum = LeranMethodJunit.add(x,y,z);
        Assert.assertEquals(27,sum);
    }

}
